package ctn.mail;

import javax.mail.Authenticator;
import javax.mail.PasswordAuthentication;

/**
 * Email CA
 * @author HLJ
 *
 */
public class EmailCa extends Authenticator {
	private String user = null;
	private String pwd = null;

	public EmailCa() {
		super();
	}

	public void setUser(String user) {
		this.user = user;
	}

	public void setPwd(String pwd) {
		this.pwd = pwd;
	}

	public EmailCa(String user, String pwd) {
		super();
		setUser(user);
		setPwd(pwd);
	}

	public PasswordAuthentication getPasswordAuthentication() {
		return new PasswordAuthentication(user, pwd);
	}

}
